package com.ssi.mrms.model.enums;

public enum TermOfPayment {
	CASH(1), CREDIT(2);
	private int id;

	private TermOfPayment(int id) {
		this.id = id;
	}

	public int getId() {
		return id;
	}

	public static TermOfPayment get(int id) {
		if (id == 0)
			return null;
		for (TermOfPayment t : values()) {
			if (t.getId() == id) {
				return t;
			}
		}
		return null;
	}

}
